package com.appspot.ldsdrawingtool.client.lds.components;

import com.google.gwt.user.client.rpc.IsSerializable;

public class LDSClientModel implements IsSerializable {
    
    private static LDSClientModel currentModel = new LDSClientModel();
    
    private String identifier;
    private String ldsModelName;
    
    // To prevent instantiation
    private LDSClientModel() {}
    
    public static void setModel(LDSClientModel clientModel) {
        currentModel = clientModel;
    }
    
    public static LDSClientModel get() {
        return currentModel;
    }
    
    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }
    
    public String getIdentifer() {
        return identifier;
    }
    
    public void setName(String newLdsModelName) {
        ldsModelName = newLdsModelName;
    }
    
    public String getName() {
        return ldsModelName;
    }
}
